package cn.edu.bit.lixin.blog.entity;

import java.util.Date;
import java.util.Set;


public class Blog implements java.io.Serializable{
	private int id;//日志ID
	private String blogname;//日志标题
	private Date pubTime;//日志发布时间
	private int views;//查看数
	private String tags;//日志的所有Tag，格式tag1,tag2,...tagn，以英文逗号区分
	private int sticky;//日志的置顶状态，0：不置顶  1：置顶
	private String content;//日志的正文
	private int isEdit;//日志是否修改过，0：否   1：是
	private Date editTime;//日志的最后修改时间
	private String other;//预留
	
	private User user;//日志的作者
	private Category category;//日志的分类
	private Set<Reply> replies;//日志下的评论
	
	public Set<Reply> getReplies() {
		return replies;
	}
	public void setReplies(Set<Reply> replies) {
		this.replies = replies;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Category getCategory() {
		return category;
	}
	public void setCategory(Category category) {
		this.category = category;
	}

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	public String getBlogname() {
		return blogname;
	}
	public void setBlogname(String blogname) {
		this.blogname = blogname;
	}
	public Date getPubTime() {
		return pubTime;
	}
	public void setPubTime(Date pubTime) {
		this.pubTime = pubTime;
	}
	public int getViews() {
		return views;
	}
	public void setViews(int views) {
		this.views = views;
	}
	public String getTags() {
		return tags;
	}
	public void setTags(String tags) {
		this.tags = tags;
	}
	public int getSticky() {
		return sticky;
	}
	public void setSticky(int sticky) {
		this.sticky = sticky;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public int getIsEdit() {
		return isEdit;
	}
	public void setIsEdit(int isEdit) {
		this.isEdit = isEdit;
	}
	public Date getEditTime() {
		return editTime;
	}
	public void setEditTime(Date editTime) {
		this.editTime = editTime;
	}
	public String getOther() {
		return other;
	}
	public void setOther(String other) {
		this.other = other;
	}
	
	
}
